import axios from 'axios'
import { getChatApi } from "../../api/chat";
export default {
  namespaced: true,
  state: {
    // 列表数据
    chatlist:[],


  },
  mutations: {
     
  },

  actions: {
    //请求聊天列表数据
    async requestData(context, id) {
      // 发送请求
      const 
        data
       = await getChatApi({
        id,
      }); 

      // 获得数据
      console.log(data);
      // context.commit("chatlist",item)  

   
    },
  },
};
